package app.android.alampang.ui.core;

import android.content.Context;
import android.widget.BaseAdapter;

import java.util.Collection;

/**
 * Created by Supanut on 1/18/2015.
 */
public abstract class BaseListAdapter<T> extends BaseAdapter
{
    private Context context;

    public BaseListAdapter(Context context)
    {
        this.context = context;
    }

    public Context getContext()
    {
        return this.context;
    }

    public abstract T get(int position);

    public abstract void remove(int position);

    public abstract void set(int position, T item);

    public abstract void add(T item);

    public abstract void setItems(Collection<T> items);

    @Override
    public long getItemId(int position) {
        // TODO Auto-generated method stub
        return 0;
    }

    @Override
    public Object getItem(int position) {
        // TODO Auto-generated method stub
        return null;
    }
}
